import httpx
import argparse

def run_request(url):
    client = httpx.Client()
    response = client.get(url)

    if response.status_code != 200:
        print(f"Request failed with status code {response.status_code}")
        return
    
    print(response.text)

def main():
    arg_parser = argparse.ArgumentParser()
    arg_parser.add_argument("--url", type=str, default="http://localhost:18000/hello")
    args = arg_parser.parse_args()

    url = args.url

    run_request(url)


if __name__ == "__main__":
    main()